#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
pansu(int i, int* n)
{
	int m;
	for (m = 2; m < i; m++)
		if (i % m == 0)
			break;
	if (i == m)
	{
		printf("%d ", i);
		(* n)++;
	}
}
int main(void)
{
	int m, n, i,count=0;
	scanf("%d %d", &m, &n);
	for (i = m; i <= n; i++)
		pansu(i, &count);
	printf("\ncount = %d", count);
	return 0;
}